package cn.com.yusys.yusp.admin.repository.mapper;

import cn.com.yusys.yusp.admin.domain.AdminSmLog;
import cn.com.yusys.yusp.commons.mapper.CommonMapper;
import cn.com.yusys.yusp.commons.mapper.QueryModel;
import org.apache.ibatis.annotations.Param;


import java.util.List;
import java.util.Map;

public interface AnnouncementManagementMapper extends CommonMapper<AdminSmLog> {
    //查询所有的公告
    List<Map<String, Object>> getAllNotice(QueryModel model);
    //根据唯一的编号来查询公告
    List<Map<String, Object>> getOnlyNotice(QueryModel model);
    //新增公告
    int addNewNotice(QueryModel model);
    //更新公告
    int updateNotice(QueryModel model);

    int deleteNotice(List<Integer> list);

    int publishNotice(List<Integer> list);

}
